{php $CSS = array('vote');}
{template 'header'}
<div class="m">
	<table cellpadding="0" cellspacing="0" width="100%">
	<tr>
	<td valign="top" class="left_menu">
		<ul>
		<li class="left_menu_li"><a href="{$MODULE[1][linkurl]}">网站首页</a></li>
		<li class="left_menu_li" id="type_0"><a href="./">投票调查</a></li>
		{loop $TYPE $t}
		<li class="left_menu_li" id="type_{$t[typeid]}"><a href="{rewrite('index.php?typeid='.$t['typeid'])}">{$t[typename]}</a></li>
		{/loop}
		</ul>
	</td>
	<td valign="top">
		<div class="left_box">		
			<div class="pos">当前位置: <a href="{$MODULE[1][linkurl]}">首页</a> &raquo; <a href="./">投票调查</a></div>
			{if $itemid}
			<div style="margin:5px 15px 5px 15px;line-height:36px;" class="t_c px14">{if $linkto}<a href="{$linkto}" target="_blank">{/if}<strong>{$title}</strong>{if $linkto}</a>{/if}</div>
			<div class="info f_gray"><span class="f_r">票数：<span class="f_red">{$item[votes]}</span>&nbsp;&nbsp;浏览：<span class="f_red">{$item[hits]}</span>&nbsp;&nbsp;&nbsp;&nbsp;<a href="javascript:window.location.reload();">[刷新]</a>&nbsp;<script type="text/javascript">addFav('[收藏]');</script></span>添加时间：{$adddate}&nbsp;&nbsp;&nbsp;<img src="{AJ_STATIC}file/image/process_{get_process($fromtime, $totime)}.gif" align="absmiddle" alt="有效期：{$fromdate} 至 {$todate}"/></div>
			{if $content}<div class="pd20 lh18 px13">{$content}</div>{else}<div class="b10"></div><div class="b10"></div>{/if}
			<div class="vote_show">
			<table cellpadding="6" cellspacing="1" width="100%" bgcolor="#E3EEF5">

			{loop $votes $k $v}
			<tr bgcolor="#FFFFFF">
			<td width="20"><div class="vote_show_n">{$v[number]}</div></td>
			<td>{$v[title]}</td>
			<td width="260"><div class="vote_show_p"><div class="vote_show_{$v[number]}" style="width:{$v[percent]};"></div></div></td>
			<td width="80" align="center">{$v[percent]}</td>
			<td width="80" align="center">{$v[votes]}</td>
			</tr>
			{/loop}
			</table>
			</div>
			<div style="padding-left:20px;">{load('vote_'.$itemid.'.htm')}</div>			
			<script type="text/javascript">
			try {Dd('vote_{$itemid}').target = '_self';}catch (e){}
			</script>
			{else}
			<div class="b10">&nbsp;</div>
			<table cellpadding="3" cellspacing="3" width="98%" align="center">
			{loop $lists $k $v}
			<tr>
			<td>&middot; {if !$typeid}<a href="{rewrite('index.php?typeid='.$v['typeid'])}">[{$v[typename]}]</a>&nbsp;{/if}<a href="{$v[linkurl]}">{$v[title]}</a></td>
			<td class="f_gray" width="120">票数:{$v[votes]}</td>
			<td class="f_gray" width="120" align="center">{$v[adddate]}</td>
			</tr>
			{/loop}
			</table>
			<div class="pages">{$pages}</div>
			{/if}
		<br/>
		</div>
	</td>
	</tr>
	</table>
</div>
<script type="text/javascript">try{Dd('type_{$typeid}').className='left_menu_on';}catch(e){}</script>
{template 'footer'}